package org.snail.exception;

import lombok.Data;


/**
 *  主要用于判断参数异常及数据库、redis、mongoDB等数据库操作异常
 */
@Data
public class CommonException extends BaseException{

    public CommonException(Integer errcode, Object errObj) {
    super(errcode, errObj);
}

    public CommonException(Integer errcode, String message) {
        super(errcode, message);
    }

    public CommonException(Integer errcode, String message, Object errObj) {
        super(errcode, message, errObj);
    }

    public CommonException(String message, Throwable cause, Integer errcode, Object errObj) {
        super(message, cause, errcode, errObj);
    }

    public CommonException(Throwable cause, Integer errcode, Object errObj) {
        super(cause, errcode, errObj);
    }
}
